<template>
    <view>
        <view v-if="!isLoad" class="margin-top load loading text-l text-admin"></view>

        <view class="main-admin" v-if="isAdmin && isLoad">
            <!-- parse <include src="admin_meet_scan_tpl.wxml"/> -->
            <block>
                <view class="form-box shadow">
                    <view class="form-group" v-if="isAdmin">
                        <view class="title text-cut">{{ title }}</view>
                    </view>
                </view>

                <view class="form-box shadow margin-top-xs">
                    <view class="checkin" @tap="bindScanTap">
                        <view class="notice">
                            <text class="icon-scan margin-right-s text-bold"></text>
                            扫码核销
                        </view>
                        <view class="desc" v-if="isAdmin">管理员扫描用户预约码进行核销</view>
                        <view class="desc" v-if="isWork">扫描用户预约码进行核销</view>
                        <view class="oprt">立即核销</view>
                    </view>
                </view>
            </block>
        </view>
    </view>
</template>

<script>
import cmptPickerTime from '@/cmpts/public/picker_time/picker_time_cmpt';
const AdminBiz = require('@/utils/comm/biz/admin_biz.js');
const pageHelper = require('@/utils/helper/page_helper.js');
const behavior = require('@/utils/meet/admin_meet_scan_bh.js');
export default {
    components: {
        cmptPickerTime
    },
    data() {
        return {
            title: '',
            isLoad: '',
            isAdmin: '',
            isWork: false
        };
    },
    mixins: [behavior],
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {
        if (!AdminBiz.isAdmin(this)) {
            return;
        }
        if (!pageHelper.getOptions(this, options, 'meetId')) {
            return;
        }
        if (options && options.title) {
            let title = decodeURIComponent(options.title);
            this.setData({
                title
            });
        }
    },
    methods: {
        // bindScanTap() {
        //     console.log('占位：函数 bindScanTap 未声明');
        // }
    }
};
</script>
<style>
@import './admin_meet_scan.css';
</style>
